<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 获取一个随机三位数的十位百位和个位(有一丢丢难度)
        var nume1 = prompt('输入一个三位数'),
            nume2 = parseInt(nume1 / 100),
            nume3 = parseInt(nume1 / 10 - nume2 * 10),
            nume4 = parseInt(nume1 - nume2 * 100 - nume3 * 10);
        alert(`百位数:${nume2}
      十位数:${nume3}
      个位数:${nume4}`)





    </script>
</head>

<body>

</body>

</html>